package duylinh

class CongNghe implements Serializable {
    String ten

    User creator
    User updater

    Date dateCreated
    Date lastUpdated

    static belongsTo = [SanPham]

    // ordered set
    List nguyenCongs

    static hasMany = [nguyenCongs:NguyenCong]

    Double sanluongTB
    String sanluongTBDv

    double leadtime
    String leadtimeDonvi

    Double dinhMucSP
    // cai, chiec, cap
    String dinhmucSPDonvi

    Double tyLeThanhPham


    static constraints = {
        creator nullable: false
        updater nullable: true
        lastUpdated nullable: true

        leadtime nullable:true
        leadtimeDonvi nullable: true
    }
}
